package com.sai.homework;

public class CallPackage implements Callservice {

    private int time;
    private int message;
    private double cost;

    public CallPackage() {
    }

    public CallPackage(int time, int message, double cost) {
        setTime(time);
        setMessage(message);
        setCost(cost);
    }

    public int getTime() {
        return time;
    }

    public void setTime(int time) {
        this.time = time;
    }

    public int getMessage() {
        return message;
    }

    public void setMessage(int message) {
        this.message = message;
    }

    public double getCost() {
        return cost;
    }

    public void setCost(double cost) {
        this.cost = cost;
    }

    /*@Override
    public void show() {
        System.out.println("每月的套餐详情是：通话时长为" + time + "分钟，短信条数为" + message + "条，当月资费为" + cost + "元");
    }*/


    public void show1() {
        System.out.println("每月的套餐详情是：通话时长为" + time + "分钟，短信条数为" + message + "条，当月资费为" + cost + "元");
    }

    @Override
    public void show(int time, MobileCard mc) {
        setTime(time);
        show1();
        System.out.println("这里是重写的方法呀");
    }

    /*public static void main(String[] args) {

    }*/
}
